home *** CD-ROM | disk | FTP | other *** search
/ Mastering Web Site Development / Microsoft Mastering Web Site Development (Microsoft) (1997).iso / Media / Ch10 / W10D010.cc2 < prev    next >
Encoding:
Text File  |  1997-04-24  |  1.8 KB  |  34 lines

  1. 0, In this demonstration, you will see how to connect 
  2. 4, to a Web server that has Anonymous logon disabled. 
  3. 8, When you go to a page in a Web server with 
  4. 10, Anonymous disabled, you're prompted for a valid NT 
  5. 13, account and password. For example, Student is a valid 
  6. 18, account on this Web server. After you've entered an 
  7. 26, account name and password, not only are you allowed 
  8. 29, to access the pages in the Web site, but server-
  9. 32, side script can read the user name you entered and 
  10. 34, use it to customize the Web pages. For example, this 
  11. 38, Web page reiterates the name that I used to logon 
  12. 42, with. Another page in this Web site also uses 
  13. 46, that information to customize the type of information 
  14. 50, that can be read from a database. Because I've 
  15. 54, logged on as Student, I'm given a list of all the 
  16. 57, classes and the students that are registered for 
  17. 59, those classes. I can go to the page grades.asp, and 
  18. 66, this time logon as "Instructor," which is another 
  19. 74, valid account for this Web server, and the information 
  20. 79, retrieved from the database is the students and 
  21. 81, their grades. Let's take a look at the source for 
  22. 85, this page to see how it's done. This is the page 
  23. 91, grades.asp. This is the line of server-side script that 
  24. 96, retrieves the logon account of the user requesting 
  25. 98, the page. Here we compare that logon account with 
  26. 104, the string "instructor." If instructor is 
  27. 107, logging on to this page, then we retrieve the student ID 
  28. 111, and the grade from the Enrollment table. 
  29. 113, Otherwise, we only retrieve the class ID and the student ID 
  30. 117, from the Enrollment table. So, you have seen how 
  31. 122, to logon onto a Web server that has Anonymous turned 
  32. 125, off and how to use that logon information in 
  33. 128, Active Server Pages.
  34. 130, END